.class Lcom/openfeint/internal/ui/NativeBrowser$1;
.super Landroid/webkit/WebViewClient;
.source "NativeBrowser.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/openfeint/internal/ui/NativeBrowser;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/openfeint/internal/ui/NativeBrowser;


# direct methods
.method constructor <init>(Lcom/openfeint/internal/ui/NativeBrowser;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    .line 50
    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method

.method private clearTimeout()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 52
    iget-object v0, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #getter for: Lcom/openfeint/internal/ui/NativeBrowser;->mHandler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/openfeint/internal/ui/NativeBrowser;->access$1(Lcom/openfeint/internal/ui/NativeBrowser;)Landroid/os/Handler;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #getter for: Lcom/openfeint/internal/ui/NativeBrowser;->mTimeoutWatchdog:Ljava/lang/Runnable;
    invoke-static {v0}, Lcom/openfeint/internal/ui/NativeBrowser;->access$2(Lcom/openfeint/internal/ui/NativeBrowser;)Ljava/lang/Runnable;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 53
    iget-object v0, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #getter for: Lcom/openfeint/internal/ui/NativeBrowser;->mHandler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/openfeint/internal/ui/NativeBrowser;->access$1(Lcom/openfeint/internal/ui/NativeBrowser;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #getter for: Lcom/openfeint/internal/ui/NativeBrowser;->mTimeoutWatchdog:Ljava/lang/Runnable;
    invoke-static {v1}, Lcom/openfeint/internal/ui/NativeBrowser;->access$2(Lcom/openfeint/internal/ui/NativeBrowser;)Ljava/lang/Runnable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 54
    iget-object v0, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #setter for: Lcom/openfeint/internal/ui/NativeBrowser;->mHandler:Landroid/os/Handler;
    invoke-static {v0, v2}, Lcom/openfeint/internal/ui/NativeBrowser;->access$3(Lcom/openfeint/internal/ui/NativeBrowser;Landroid/os/Handler;)V

    .line 55
    iget-object v0, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    #setter for: Lcom/openfeint/internal/ui/NativeBrowser;->mTimeoutWatchdog:Ljava/lang/Runnable;
    invoke-static {v0, v2}, Lcom/openfeint/internal/ui/NativeBrowser;->access$4(Lcom/openfeint/internal/ui/NativeBrowser;Ljava/lang/Runnable;)V

    .line 57
    :cond_0
    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 0
    .parameter "view"
    .parameter "url"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/openfeint/internal/ui/NativeBrowser$1;->clearTimeout()V

    .line 60
    invoke-super {p0, p1, p2}, Landroid/webkit/WebViewClient;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 61
    return-void
.end method

.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter "view"
    .parameter "errorCode"
    .parameter "description"
    .parameter "failingUrl"

    .prologue
    .line 63
    invoke-direct {p0}, Lcom/openfeint/internal/ui/NativeBrowser$1;->clearTimeout()V

    .line 64
    invoke-super {p0, p1, p2, p3, p4}, Landroid/webkit/WebViewClient;->onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V

    .line 66
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 67
    .local v0, returnIntent:Landroid/content/Intent;
    const-string v1, "com.openfeint.internal.ui.NativeBrowser.argument.failed"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 68
    const-string v1, "com.openfeint.internal.ui.NativeBrowser.argument.failure_code"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 69
    const-string v1, "com.openfeint.internal.ui.NativeBrowser.argument.failure_desc"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 70
    iget-object v1, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    const/4 v2, -0x1

    invoke-virtual {v1, v2, v0}, Lcom/openfeint/internal/ui/NativeBrowser;->setResult(ILandroid/content/Intent;)V

    .line 71
    iget-object v1, p0, Lcom/openfeint/internal/ui/NativeBrowser$1;->this$0:Lcom/openfeint/internal/ui/NativeBrowser;

    invoke-virtual {v1}, Lcom/openfeint/internal/ui/NativeBrowser;->finish()V

    .line 72
    return-void
.end method
